package com.cmas.platform.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.cmas.platform.vo.UserInfoRecordVo;
import com.cmas.platform.vo.UserRecordVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.cmas.platform.domain.UserRecord;

import java.util.List;

/**
 * 用户记录表Mapper接口
 * @author su
 * @email 1218819874@qq.com
 * @date 2023-04-28
 */
@Mapper
public interface UserRecordMapper extends BaseMapper<UserRecord>
{

    /**
     * 批量删除用户记录表
     * @param ids 需要删除的用户记录表ID集合
     * @return
     */
    public int deleteUserRecordByIds(@Param("ids") String[] ids, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);

    public List<UserRecordVo> selectUserRecordList(@Param(Constants.WRAPPER) QueryWrapper<UserRecord> setQueryWrapper);

    public UserInfoRecordVo selectUserInfoRecord(@Param("userId") String userId);

}
